package com.example.helloword.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Person {
    private String name;
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date daytime;
//    @JsonFormat(pattern = "yyyy:MM:dd")
    private LocalDate day;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date day2;

    @JsonFormat(shape = JsonFormat.Shape.NUMBER)
    private EnumCity cityNum;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private EnumCity cityStr;
}
